﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MvcSmartTool.Common {
    public class EntityMetadataProvider {
        public Dictionary<string, string> m_nameDictionary;
        private static object m_locker = new object();
        private static EntityMetadataProvider m_current;
        public static EntityMetadataProvider Current {
            get {
                if (m_current == null) {
                    lock (m_locker) {
                        if (m_current == null) {
                            m_current = new EntityMetadataProvider();
                        }
                    }
                }
                return m_current;
            }
        }
        private EntityMetadataProvider() {
            m_nameDictionary = new Dictionary<string, string>();
        }
        public string GetNameDisplayOfEntity(string entityName) {
            throw new NotImplementedException();
        }
    }
}
